home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-2.iso
/
os2
/
pmremd10.zip
/
install.cmd
next >
Wrap
OS/2 REXX Batch file
|
1996-01-11
|
2KB
|
51 lines
/* Installation script for PMRemind */
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
'@echo off'
say 'Is the current drive/directory the destination (Y/n)?'
pull ans .
if SUBSTR(ans,1,1)='N' then do
source=directory()
say 'Please enter the destination drive and directory'
say 'The directory will be made if it does not exist'
pull dest
ans=SysMkDir(dest)
if \(ans=0 | ans=5) then do
say 'Directory could not be created. Please verify the drive and path.'
EXIT
end
say 'Copying Files...Please Wait'
copy source'\*.*' dest'>nul'
if substr(dest,2,1)=':' then do
'cd 'substr(source,1,2)'\'
substr(dest,1,1)':'
end /* Do */
cd dest'>nul'
say 'Do you want me to delete and remove 'source' (N/y)?'
pull ans
if substr(ans,1,1)='Y' then do
"cmd /c del "source"\*.* /n"
rd source
end /* Do */
end /* Do */
dest=directory()
say 'Would you like PMRemind in the S)tartup folder or the D)esktop (D/s)?'
pull ans .
if substr(ans,1,1)='S' then
ans='<WP_START>'
else
ans='<WP_DESKTOP>'
say 'Please enter your name for your datafile. (Default is pmremind.rem)'
pull datafile .
if datafile='' then datafile='pmremind.dat'
if SysCreateObject("WPProgram", "PMRemind", ans,"EXENAME="dest"\PMREMIND.EXE;PARAMETERS="datafile";startupdir="dest,R)
THEN say 'Object created ok'
else
say 'Failed to create object'